<?php if(!defined('ROOT_PATH')) exit('Access Denied');?>  <script type="text/javascript">
  	  		var childWindow;
            function toQzoneLogin()
            {

                childWindow = window.open("<?php echo APP;?>index.php/Index/Login/","TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
           
            } 
 function closeChildWindow()
            {
                childWindow.close();
            }
 </script>
<div id="sidebar">
<!--  登录 Login   -->
    <ul id="msgshow"><!--提示框-->
    </ul>
    <ul class="login">
      <li> 
        <div class="vh3">
          <h3><em>登录</em><span>Login</span></h3>
        </div>
        <ul>
        <li>
        <a href="" onclick='toQzoneLogin()'><img src="<?php echo APP;?>themes/default/images/Connect_login.png" alt="登录" /></a>
        </li>
        </ul>
      </li>
    </ul>
    <ul class="link">
      <li> 
        <!--  链接 Link   -->
        <div class="vh3">
          <h3><em>链接</em><span>Link</span></h3>
        </div>
        <ul>
        <?php if(is_array($linkdata)) foreach($linkdata AS $vlaue) { ?>
        <li><a href="<?php echo $vlaue["url"];?>" title="<?php echo $vlaue["linkname"];?>" alt="<?php echo $vlaue["introduction"];?>"><?php echo $vlaue["linkname"];?></a></li> 
        <?php } ?>

        </ul>
      </li>
    </ul>
    <!--  标签云 Tags   -->
    <ul class="tags">
      <li>
        <div class="vh3">
          <h3><em>标签云</em><span>Tags</span></h3>
        </div>
        <div id="tagc" class="tagc"> </div>
      </li>
    </ul>
    <script type="text/javascript">
var so = new SWFObject("<?php echo APP;?>themes/default/js/tagcloud.swf", "tagcloud", "250", "250", "3", "#ffffff");
// uncomment next line to enable transparency
//so.addParam("wmode", "transparent");
so.addVariable("tcolor", "0x333333");
so.addVariable("mode", "tags");
so.addVariable("distr", "true");
so.addVariable("tspeed", "100");
so.addVariable("tagcloud", "<tags><a href='' style='12' >Hppy</a><?php if(is_array($tagdata)) foreach($tagdata AS $vlaue) { ?><a href='<?php echo $vlaue['url'];?>' style='12' ><?php echo $vlaue['tagname'];?></a><?php } ?>
</tags>");
so.write("tagc");
</script> 
    <!--  留言 Leave   -->
    <ul class="leave">
      <li>
        <div class="vh3">
          <h3><em>留言</em><span>Leave</span></h3>
        </div>
        <div class="leavec">
          <ul id="side-leavec">
          <?php if(is_array($leavedata)) foreach($leavedata AS $vlaue) { ?>
          <li class="vcard"> <span class="avatar"><img src="<?php echo APP;?>themes/default/images/nopic.png" alt="" /></span> <span class="fn"><a target="_blank" class="url" rel="nofollow" title="<?php echo $vlaue["name"];?>" href="" title="<?php echo $vlaue["name"];?>"><?php echo $vlaue["name"];?></a></span> <span class="leavedate"><?php echo date('m-d i:s',strtotime($vlaue["date"]));?></span> <span class="txt"><a href="" title="<?php echo $vlaue["name"];?>"><?php echo ubb($vlaue["content"]);?></a></span> </li>
          <?php } ?>

        
          </ul>
        </div>
      </li>
    </ul>
    <ul class="search">
      <li>
        <div class="vh3">
          <h3><em>搜索</em><span>Search</span></h3>
        </div>
        <div class="searchc"> </div>
      </li>
    </ul>
  </div>